//
//  POSTViewCtl.m
//  afnleaks
//
//  Created by  Mac on 2021/3/31.
//

#import "POSTViewCtl.h"

@interface POSTViewCtl ()

@end

@implementation POSTViewCtl

- (void)viewDidLoad {
    [super viewDidLoad];
}

- (IBAction)postaction:(id)sender {
    NSString *urlString = @"www.xiaoqincai.tk";
        
        AFHTTPSessionManager *manager =[AFHTTPSessionManager manager];
        
        NSMutableDictionary *parameter= [NSMutableDictionary new];
    [manager POST:urlString parameters:parameter headers:nil progress:^(NSProgress * _Nonnull uploadProgress) {
    } success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
        NSLog(@"成功");
    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
        NSLog(@"%@",error);
    }];
}


@end
